<?php

namespace app\admin\validate;

use think\Validate;

class AuthRule extends Validate
{
    protected $rule = [
        'title'  => 'require|max:20',
    ];

    protected $message = [
        'title.require' => '名称必须',
        'title.max'     => '名称最多不能超过20个字符',
    ];
}